<?php 
$msg = $this->session->flashdata('msg');
if(!empty($msg)){?>
<div class="alert alert-success">
	<?= $msg;?>
</div>
<?php }?>
<?php echo form_open(uri_string()) ?>
<div class="pull-right"><a href="<?php echo site_url('founder/user/department')?>">View Departments</a></div>
<table width="50%" class="">
  <tr>
    <td>Department Name</td>
    <td><input type="text" name="name" class="input-big" placeholder="Department Name" value="<?php echo $department['name'] ?>" /></td>  
  </tr>
  <tr>
  <td width="70%">Description</td>
	<td>
	<textarea name="desc" class="input-big" placeholder="Department description"> <?php echo $department['description'] ?> </textarea>
	<?php echo form_hidden('id', $department['id']);?>	
	</td> 	
  </tr>
  <tr>
  	<td></td>
	<td><input type="submit" class="btn btn-success" value="Edit Department" /></td>
  </tr>
</table>
</form>


<?php 

/*for($i=0;$i<5;$i++){
	for($j=0;$j<$i;$j++){
		echo '*';
	}
echo '<br>';
}*/

?>